Repository navigation
fix: make file logging thread-safe and surface conversion failures - #159
Merged
Merged
Conversation
JackLau1222
force-pushed
the
fix/logging-and-conversion-errors
branch
2 times, most recently
from
November 22, 2026 13:25
68a0a48 to
a0d2428
Compare
The log callback raced across threads and stored split FFmpeg lines, and a missing transcoder or a thrown conversion error could still look like success. Co-authored-by: Cursor <cursoragent@cursor.com>
windows.h defines IsLoggingEnabled, so MSVC rewrote the method to IsLoggingEnabledA and rejected the build. The CI archive pinned to the old BtbN release returns 404, and macos-14 runners have been retired. Co-authored-by: Cursor <cursoragent@cursor.com>
Pin the existing third-party actions, lock the setuptools install, and stop the old wget calls from following redirects. These lines were in the tree before this pull request. Co-authored-by: Cursor <cursoragent@cursor.com>
JackLau1222
force-pushed
the
fix/logging-and-conversion-errors
branch
from
November 23, 2026 05:12
a0d2428 to
c0309d2
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
av_log_format_line2, and keep progress updates out of the log file.Test plan
cmake --build build-tests --target OpenConverter transcoder_testagainst FFmpeg 6./build-tests/tests/transcoder_test --gtest_filter='LoggerTest.*'(12 tests passed)~/Library/Application Support/OpenConverter/openconverter.loghas timestamped lines without per-frame\rprogress spam. Verified on the built app: 428 timestamped lines, 0 carriage returns, 0frame=lines. The short test clip itself failed to encode (Invalid time base 0/1).settings.inistayedfileLoggingEnabled=false.openconverter.logmode000, the app showed "Could not open the log file" and the checkbox returned to off.